package cn.zust.edu.cn;
/**
 * 
 * @author czg
 * @since 2022/9/7 11:07
 */
public class App {
//    public static void main(String[] args) {
//        System.out.println("hello world!");
//        Point topLeft = new Point(3, 4);
//        Rectangle rect = new Rectangle(topLeft, 3, 5);
//
//        System.out.println("Perimeter: " + rect.perimeter());
//        System.out.println("Area: " + rect.area());
//        rect.draw();
//    }
public static void main(String[] args){
    ShapeManager shapeManager=new ShapeManager();
    Rectangle rect=new Rectangle(new Point(3,4),3,5);
    Triangle tri=new Triangle(new Point(0,0),new Point(0,10),new Point(5,5));
    Circle cir=new Circle(new Point(10,10),10);
    shapeManager.addShape(rect);
    shapeManager.addShape(tri);
    shapeManager.addShape(cir);
    shapeManager.drawShapes();
    shapeManager.delShape(rect);
    shapeManager.drawShapes();
}
}
